package com.dykj.fireFighting.api.elasticsearch.devHisWater.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;


/**
 * @Description 消防水系统设备运行记录
 * @Author LIJIANJIE
 * @Date 2021-07-12 15:09:48
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "devhiswater", type = "product", shards = 1, replicas = 0)
public class EsDevHisWater implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    private String id;
    /**
     * 设备id
     */
    private String relationId;
    /**
     * 主机code
     */
    @Field(type = FieldType.Keyword)
    private String uniqueCode;
    /**
     * 数据上传时间
     */
    @Field(type = FieldType.Keyword)
    private String uploadTime;
    /**
     * 采样时间
     */
    @Field(type = FieldType.Keyword)
    private String stateTime;
    /**
     * 系统类型
     */
    private String sysType;
    /**
     * 系统地址
     */
    private String sysAddress;
    /**
     * 部件类型
     */
    private String componentType;
    /**
     * 部件地址
     */
    private String componentAddress;
    /**
     * 部件状态
     */
    private String componentStatus;
    /**
     * 部件说明
     */
    private String componentExplain;
    /**
     * 模拟量类型
     */
    private String moniType;
    /**
     * 模拟量值
     */
    private String moniValue;
    /**
     * 计算后的水位/水压值
     */
    private Double calculationValue;

    /**
     * 复核状态 0未  1已
     */
    private String status;

    /**
     * 复核状态 0未  1已
     */
    private String fuheContent;

    /**
     * 复核状态 0未  1已
     */
    private Date fuheTime;
    /**
     * 复核状态 0未  1已
     */
    private String fuhePerson;

    private String fuhePersonId;

    private String importPart;
    /**
     * 复核状态 0未  1已
     */
    private Integer isEffective;
    private String unitId;
    @Field(type = FieldType.Keyword)
    private String deviceName;
    @Field(type = FieldType.Keyword)
    private String centerUnitId;
    private String unitName;
    @Field(type = FieldType.Keyword)
    private String devType;
}
